import { http } from '@/utils/http'


export const select_by_apply_user = (userId) => {
  return http({
    url: `/wfmanager/wfTransApply/select_by_apply_user/${userId}`,
    method: 'post',
  })
}
export const wfTypeFindPage = () => {
  return http({
    url: "/wfmanager/wfType/findPage",
    method: 'get',
  })
}

export const select_register_by_ids = (ids) => {
  return http({
    url: `/select_register_by_ids?ids=${ids}`,
    method: 'post',
  })
}

export const terminate_trans_apply = (workItemId,applyId) => {
  return http({
    url: `/terminate_trans_apply?workItemId=${workItemId}&applyId=${applyId}`,
    method: 'post',
  })
}

export const wfTransApplyDelete = (applyId) => {
  return http({
    url: `/wfmanager/wfTransApply/delete/${applyId}`,
    method: 'post',
  })
}

export const select_depts_by_deptIds = (deptIds) => {
  return http({
    url: `/wfmanage/common/select_depts_by_deptIds?deptIds=${deptIds}`,
    method: 'get',
  })
}